package com.example.tse.rbhttpservice.service.member.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.member.model.MemberOrderGetListGoods;
/**
 * 获取我的订单列表，订单状态包括待支付、待发货、待收货、已完成、已取消
 * @author wliu
 * edit tse
 */
public class MemberOrderGetList extends RudderResponse{
    
    private String orderId = "";
		
    
    private String addTime = "";
		
    
    private String total = "";
		
    
    private String status = "";
		
    
    private List<MemberOrderGetListGoods> goods = new ArrayList<MemberOrderGetListGoods>();
		
    
    private String wareName = "";
		
    
    private String subTax = "";
		
	
    /**
     * @return orderId
     */	
    public String getOrderId() { 
	    return this.orderId;
    };
	
	/**
     * @return orderId
     */	
    public void setOrderId(String orderId) { 
        this.orderId = orderId;
    };
    
    /**
     * @return addTime
     */	
    public String getAddTime() { 
	    return this.addTime;
    };
	
	/**
     * @return addTime
     */	
    public void setAddTime(String addTime) { 
        this.addTime = addTime;
    };
    
    /**
     * @return total
     */	
    public String getTotal() { 
	    return this.total;
    };
	
	/**
     * @return total
     */	
    public void setTotal(String total) { 
        this.total = total;
    };
    
    /**
     * @return status
     */	
    public String getStatus() { 
	    return this.status;
    };
	
	/**
     * @return status
     */	
    public void setStatus(String status) { 
        this.status = status;
    };
    
    /**
     * @return goods
     */	
    public List<MemberOrderGetListGoods> getGoods() { 
	    return this.goods;
    };
	
	/**
     * @return goods
     */	
    public void setGoods(List<MemberOrderGetListGoods> goods) { 
        this.goods = goods;
    };
    
    /**
     * @return wareName
     */	
    public String getWareName() { 
	    return this.wareName;
    };
	
	/**
     * @return wareName
     */	
    public void setWareName(String wareName) { 
        this.wareName = wareName;
    };
    
    /**
     * @return subTax
     */	
    public String getSubTax() { 
	    return this.subTax;
    };
	
	/**
     * @return subTax
     */	
    public void setSubTax(String subTax) { 
        this.subTax = subTax;
    };
    
	
        
    private static void filterFor(MemberOrderGetListGoods member) {
        if (member.getProductId() == null) {
            member.setProductId("");
        }
        if (member.getName() == null) {
            member.setName("");
        }
        if (member.getPrice() == null) {
            member.setPrice("");
        }
        if (member.getQuantity() == null) {
            member.setQuantity("");
        }
        if (member.getThumbnailPic() == null) {
            member.setThumbnailPic("");
        }
        if (member.getSubTotal() == null) {
            member.setSubTotal("");
        }
        if (member.getSpec() == null) {
            member.setSpec("");
        }
    }
        
    public static void filter(MemberOrderGetList member) {
        if (member.getOrderId() == null) {
            member.setOrderId("");
        }
        if (member.getAddTime() == null) {
            member.setAddTime("");
        }
        if (member.getTotal() == null) {
            member.setTotal("");
        }
        if (member.getStatus() == null) {
            member.setStatus("");
        }
        if (member.getGoods() == null) {
            member.setGoods(new ArrayList<MemberOrderGetListGoods>());
        } else {
            for (MemberOrderGetListGoods item : member.getGoods()) {
                filterFor(item);
            }
        }
        if (member.getWareName() == null) {
            member.setWareName("");
        }
        if (member.getSubTax() == null) {
            member.setSubTax("");
        }
    }
}
